package com.ai.controller.made;


import com.ai.annotation.EnterPathParamLog;
import com.ai.common.CommonResponse;
import com.ai.model.dto.OpcNodeCameraFunctionRelationDto;
import com.ai.model.dto.OpcNodeInfoDto;
import com.ai.service.made.IOpcNodeCameraFunctionRelationService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 节点功能关系
 * @author jiaok
 * @since 2024-11-15
 */
@RestController
@RequestMapping("/opc-node-camera-function-relation")
public class OpcNodeCameraFunctionRelationController {

    @Resource
    private IOpcNodeCameraFunctionRelationService iOpcNodeCameraFunctionRelationService;


    @ApiOperation("新增绑定关系")
    @PostMapping("add")
    @EnterPathParamLog
    public CommonResponse<String> add(@RequestBody OpcNodeCameraFunctionRelationDto opcNodeCameraFunctionRelationDto){
        return iOpcNodeCameraFunctionRelationService.add(opcNodeCameraFunctionRelationDto);
    }


}
